#ifndef PHYSICS2D_HH_
# define PHYSICS2D_HH_


// bounce / ... usefull in 2D ?

class Physics2D
{
public:
  /** detect a collision between two 2D objects
  ** // cd extend to Shape class
  */
  static bool collide(Rectangle a, Rectangle b);

  /** \return true if mouse is in \param rect
   */
  static bool mouseIn(float mouseX, float mouseY, Rectangle rect);

private:
  Physics2D(); /// private Ctor: singleton
};

#endif /* !PHYSICS2D_HH_ */
